package com.eurekaserver.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**项目部署环境
 * @author ：zhangqiang
 * @create ：2018-08-14 16:05
 **/
@RestController
public class MainController {

	@Value("${spring.profiles.active}")
	private String MavenActive;//mvn clean 打包环境

	@Value("${eureka-server.active}")
	private String eurekaserverActive;

	@RequestMapping(value = {"/server","/active"},method = RequestMethod.GET,produces = "text/html;charset=UTF-8")
	public String jpushServer(){
		return "eureka-server-项目-打包环境："+MavenActive+"，eureka-server-项目-启动环境："+eurekaserverActive;
	}
}
